import request from '@/utils/request'

// 抓取系统消息
export function startPollMessage(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/websocket/startPollMessage`,
    method: 'get',
    params: query
  })
}

// 停止抓取系统消息
export function stopPollMessage(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/websocket/stopPollMessage`,
    method: 'get',
    params: query
  })
}

// 抓取系统日志
export function startPollLog(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/websocket/startPollLog`,
    method: 'get',
    params: query
  })
}

// 停止抓取系统日志
export function stopPollLog(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/websocket/stopPollLog`,
    method: 'get',
    params: query
  })
}
